package com.example.sup.mapper;

import com.example.sup.entity.Prison;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
* @author mac
* @description 针对表【prison(监室表)】的数据库操作Mapper
* @createDate 2024-07-19 10:05:17
* @Entity com.example.sup.entity.Prison
*/
public interface PrisonMapper extends BaseMapper<Prison> {
    /**
     *  查询指定监室的温度和湿度
     * @param prisonId  监室id
     * @return
     */
    Prison queryTemperAndHumidity(Integer prisonId);

    /**
     *  查询指定监区的所有监室
     * @param prisonDistrictId  监区id
     * @return
     */
    List<Prison> queryPrisonByDistrictId(Integer prisonDistrictId);
}




